package com.three.work.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张子艺
 * @since 2020-04-02
 */
@TableName("sign")
@ApiModel(value="Sign对象", description="")
public class Sign extends Model<Sign> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "位置名字")
    @TableField("locationName")
    private String locationName;

    @ApiModelProperty(value = "签到照片")
    @TableField("fileName")
    private String fileName;

    @ApiModelProperty(value = "年")
    @TableField("y")
    private String y;

    @ApiModelProperty(value = "月")
    @TableField("m")
    private String m;

    @ApiModelProperty(value = "日")
    @TableField("d")
    private String d;

    @ApiModelProperty(value = "latitude")
    @TableField("latitude")
    private String latitude;

    @ApiModelProperty(value = "longitude")
    @TableField("longitude")
    private String longitude;

    @ApiModelProperty(value = "用户id外键")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "0 上午 1=下午")
    @TableField("isPm")
    private Integer isPm;

    @ApiModelProperty(value = "是否结算过？结算了不可以进行修改地点 1 是 2否")
    @TableField("is_pay")
    private Integer isPay;

    @ApiModelProperty(value = "用户名")
    @TableField(exist = false)
    private String uName;

    @ApiModelProperty(value = "价格")
    @TableField(exist = false)
    private String price;


    public Integer getIsPay() {
        return isPay;
    }

    public void setIsPay(Integer isPay) {
        this.isPay = isPay;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getLocationName() {
        return locationName;
    }

    public void setLocationName(String locationName) {
        this.locationName = locationName;
    }
    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
    public String getY() {
        return y;
    }

    public void setY(String y) {
        this.y = y;
    }
    public String getM() {
        return m;
    }

    public void setM(String m) {
        this.m = m;
    }
    public String getD() {
        return d;
    }

    public void setD(String d) {
        this.d = d;
    }
    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }
    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public Integer getIsPm() {
        return isPm;
    }

    public void setIsPm(Integer isPm) {
        this.isPm = isPm;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Sign{" +
            "id=" + id +
            ", locationName=" + locationName +
            ", fileName=" + fileName +
            ", y=" + y +
            ", m=" + m +
            ", d=" + d +
            ", latitude=" + latitude +
            ", longitude=" + longitude +
            ", userId=" + userId +
            ", isPm=" + isPm +
        "}";
    }
}
